﻿using System;

namespace TLang.Ast
{
    using Values;

    public class Str : Node
    {
        public String value;


        public Str(String value, String file, int start, int end, int line, int col) : base(file, start, end, line, col)
        {
            this.value = value;
        }


        public override Value Interp(Scope s)
        {
            return new StringValue(value);
        }

        public override Value Typecheck(Scope s)
        {
            return Type.STRING;
        }


        public override String ToString()
        {
            return "\"" + value + "\"";
        }
    }
}
